<%@ page language="java" import="java.sql.*"%>
<%
    stmt.close();
    conn.close();
    //stmt_a1a2.close();
    //conn_a1a2.close();
    if(conn!=null&&!conn.isClosed()){conn.close();conn=null;}
    }catch(Exception err){
    if(conn!=null&&!conn.isClosed()){conn.close();conn=null;}
    out.print("<center><FONT   COLOR='red'>数据库连接失败，请联系系统管理员"+err.toString()+"</FONT></center>");
    err.printStackTrace();
    }finally{
    try{
    if(rs!=null){rs.close();rs=null;}
    }catch(Exception e){
    e.printStackTrace();
    }

    try{
    if(stmt!=null){stmt.close();stmt=null; }
    //if(stmt_a1a2!=null){stmt_a1a2.close();stmt_a1a2=null; }
    }catch(Exception e){
    e.printStackTrace();
    }

    try{
    if(conn!=null&&!conn.isClosed()){conn.close();conn=null;}
    //if(conn_a1a2!=null&&!conn_a1a2.isClosed()){conn_a1a2.close();conn_a1a2=null;}
    }catch(Exception e){
    e.printStackTrace();
    }


    }
    }catch(Exception e){
    out.print(e+"<center><INPUT TYPE='image' SRC='../images/====.jpg'></center>");
    }
%>